<?php
// Set the content type to Javascript
header("Content-type: text/javascript");

// Disallow caching
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");

$array = array(
   "validateemailurl" => OC_Helper::linkToRoute("jobseeker_validateemail"),
   "validatenameurl" => OC_Helper::linkToRoute("jobseeker_validatename"),
   "jobseekerhomeurl" => OC_Helper::linkToRoute("jobseeker_home"),
   "showcaptchaurl" => OC_Helper::linkToRoute('company_showcaptcha'),
   "getvcodeurl" => OC_Helper::linkToRoute("company_getvcode"),
   "setpersontesturl" => OC_Helper::linkToRoute("jobseeker_setpersontest"),
   "loginurl" => OC_Helper::linkToRoute("jobseeker_login")
);

// Echo it
foreach ($array as  $setting => $value) {
   echo("var ". $setting ."=\"".$value."\";\n");
}
